package main

import (
	"fmt"
)

func main() {
	s := toLowerCase("AaaaBB")
	fmt.Println(s)
}

/**
709.
Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.
Example 1:

Input: "Hello"
Output: "hello"
Example 2:

Input: "here"
Output: "here"
Example 3:

Input: "LOVELY"
Output: "lovely"
*/
func toLowerCase(str string) string {
	var lowStr string
	for _, v := range str {
		if v < 97 && v >= 65 {
			v = v + 32
			lowStr += string(v)
		} else {
			lowStr += string(v)
		}
	}
	return lowStr
}
